import type { NextPage } from 'next'
import {GetServerSideProps} from 'next';

const GameLandingPage: NextPage = () => null

export const getServerSideProps: GetServerSideProps = async (ctx) => {
  return {
    redirect: {
      destination: `/games/${ctx.query.id}/play`,
      permanent: false,
    },
  };
}

export default GameLandingPage
